package dao;

import java.sql.SQLException;
import java.util.List;

import domain.Notice;

public interface NoticeDao {
	public List<Notice> findAllNotices (int page, int limit) throws SQLException;
	
	public List<Notice> findNoticesOrderByTime () throws SQLException;
	
	public Notice findNoticeById (String id) throws SQLException;
	
	public boolean deleteNoticeById (String id) throws SQLException;
	
	public boolean addNotice (Notice notice) throws SQLException;
	
	public boolean update (Notice notice) throws SQLException;
}
